#include "StdAfx.h"
#include "UCComboBox.h"


CUCComboBox::CUCComboBox(void)
{
	lstrcpy(szClsName,_T("UCComboBox"));
}

CUCComboBox::~CUCComboBox(void)
{
}

LPCTSTR CUCComboBox::GetClass() const
{
	return szClsName;
}

void CUCComboBox::DoPaint(HDC hDC, const RECT& rcPaint)
{
	
}

void CUCComboBox::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
	if (_tcsicmp(pstrName, _T("LeftNormalImage")) == 0)
	{
		m_sLeftNormalImage = pstrValue;
	}
	else if (_tcsicmp(pstrName, _T("CenterNormalImage")) == 0)
	{
		m_sCenterNormalImage = pstrValue;
	}
	else if (_tcsicmp(pstrName, _T("RightNormalImage")) == 0)
	{
		m_sRightNormalImage = pstrValue;
	}
	else if (_tcsicmp(pstrName, _T("ArrowNormalImage")) == 0)
	{
		m_sArrowNormalImage = pstrValue;
	}
	else
	{
		CComboUI::SetAttribute(pstrName,pstrValue);
	}
}